package com.demo;

/**
 * 主程序
 * 描述：简单的马戏团菜单系统，可以简单的选择表演者并显示其信息
 * 2017/8/23.
 * @author Erik
 * @version 0.1
 * @since JDK1.8
 * @see com.menu.Menu
 * @see com.animals.Animal
 * @see com.animals.Bear
 * @see com.animals.Lion
 * @see com.animals.Monkey
 * @see com.animals.Bird
 * @see com.animals.People
 */

import com.animals.*;
import com.menu.Menu;
import java.util.Scanner;

public class Management {
    public static void main(String[] args){
        int selection;
        int yon;
        Menu menu=Menu.getMenu();

        Scanner scanner=new Scanner(System.in);

        System.out.println(menu.showMenu());
        selection=scanner.nextInt();

        while(selection>=1 && selection<=5) {
            switch (selection) {
                case 1:
                    Bear bear =
                            new Bear("Bill", 1, "挽着花篮，打着雨伞，自立走秀", "喜欢卖萌");
                    System.out.println(bear.info());
                    break;
                case 2:
                    Lion lion = new Lion("Lain", 2, "公狮", "灰色", "擅长钻火圈", "喜欢吃各种肉类");
                    System.out.println(lion.info());
                    break;
                case 3:
                    Monkey monkey = new Monkey("Tom", 2, "金丝猴", "骑独轮车过独木桥", "喜欢模仿");
                    System.out.println(monkey.info());
                    break;
                case 4:
                    Bird bird = new Bird("Rose", 1, "牡丹鹦鹉", "擅长模仿", "喜欢吃坚果和松子");
                    System.out.println(bird.info());
                    break;
                case 5:
                    People people = new People("Kahle", 5, "身穿五彩服装，头戴彩色帽子，脸上化着夸张的彩妆", "脚踩高跷，进行杂技魔术表演");
                    System.out.println(people.info());
                    break;
            }

            menu.yon();
            selection = scanner.nextInt();

        }


    }
}
